#!/usr/bin/env python


def buildConnectionString(params):
    """ Build a connection string from a dictionary of params.

    Returns String"""

    return ";".join(["%s=%s" % (k, v) for k, v in params.items()])


if __name__ == "__main__":
    myParams = {
            "server": "mpilgrim",
            "database": "master",
            "uid": "sa",
            "pwd": "secret",
            }
    print buildConnectionString.__doc__
    print buildConnectionString(myParams)

